using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Edmx.Storage
{
    [DebuggerDisplay("Name={Name}, Properties={Properties.Count}")]
    [XmlType(Namespace = EdmxConstants.StorageSchemaNamespace)]
    public class EntityType : MetadataEntityBase<EntityType>
    {
        [XmlElement("Key")]
        public EntityKey Key { get; set; }

        [XmlElement("NavigationProperty", typeof(NavigationProperty))]
        public NavigationPropertyCollection NavigationProperties { get; set; }

        [XmlElement("Property", typeof(Property))]
        public PropertyCollection Properties { get; set; }

        [XmlAttribute("Name")]
        public string Name { get; set; }
    }
}